Repository navigation
Remember the TV Guide's own category per profile - #86
Merged
Merged
Conversation
"TV Guide follows Live TV" promised that with the switch off the Guide "keeps a category of its own", but nothing stored it: the filter lived in the view model, so every app start put the Guide back on All and the user had to pick Favorites again. With the switch on, a pick in the Guide did reach Live TV's memory, so only the default configuration was broken. `last_guide_category` is stored beside the other remembered positions — one per profile, portable in a backup the same way, and dropped with the profile. The app writes it from a pick only; a startup choice or the jump to the playing channel's folder stays a placement.
7 tasks done
ahXN00
added a commit
that referenced
this pull request
Nov 18, 2026
ahXN00
added a commit
that referenced
this pull request
Nov 18, 2026
…gs, fixed sort on Favorites/History Merges #86 (TV Guide remembers its own category), with one fix on top: SettingsBackupCoverageTest now lists last_guide_category among the keys exported per profile in the lastCategories block, as it already did for Live TV, Movies and Series. The key is in POSITIONS, so deleting a profile forgets it through forgetProfilePositions. Central Kurdish (ckb) added to tools/i18n/locales.json as a catalogue-only language (tier 2, Arabic script, right to left, no resource directory), following the Basque entry: plural rule one/other in validate_strings.py, the expected catalogue-only tags and the canonical Weblate code; test_i18n_tools.py and SupportedLocalesTest counts raised by one; SupportedLocales.kt regenerated. The next translations sync opens the promotion pull request. Closes #82 LiveKey.hasFixedOrder: Favorites and History are ordered by moved items, then newest added / last watched, whatever the section's sort says. Both apps use it to show the sort as a greyed "Newest first" there (existing string content_newest_first). The A-Z part of #85 (case-insensitive sorting) is rebuilt separately; this is the Favorites/History rule from #85 / ahXN00/OwnTV#369, rebuilt rather than merged. Phone player screen lock: player_lock_screen and player_hold_to_unlock in strings_player.xml, base plus every packaged locale. Verified: ./gradlew build (core and player-core unit tests, lint, instrumentation APK compile); the four i18n gates, check_weblate_format, test_i18n_tools.py (132 OK). Both apps built against this source and tested on a TCL TV and an OnePlus phone (release builds over the existing install, data kept).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The TV Guide's category is now remembered per profile, like Live TV's, Movies' and Series' already are.
last_guide_categoryjoinsKeys.POSITIONS: one value per profile, carried with the other portable positions in a backup (folder ids filtered exactly as before) and dropped when the profile is.lastGuideCategory/setLastGuideCategorysit beside the other three.Why
With "TV Guide follows Live TV" off — the default — the Guide's filter lived in the app's view model only, so every start put it back on All channels and Favorites had to be picked again, even though that switch's own help text promises the Guide "keeps a category of its own". With the switch on, a pick in the Guide already reached Live TV's remembered value (#325); only the default configuration was broken.
The value is written from a pick only — a startup choice and the jump to the playing channel's folder stay placements in the app, exactly as they already do for
last_live_category.Testing
Built and exercised against the app via
-Powntv.corePath: the Guide reopens on its own list after a restart, a remembered folder that no longer exists falls back to All, and the switch keeps Live TV's memory authoritative while it is on. The i18n ratchet passes (the new preference key is classified, and the backup export/import list is the only other data change).Release note
🧭 TV Guide: remembers its own category per profile, not only when it follows Live TV
The companion TV-app PR is ahXN00/OwnTV#370 (draft until this is released and the app's
owntvCorepin is bumped — it builds against core's source locally, so its CI is red until then).